using System;
using System.Collections;
using System.IO;
using System.Xml;
using System.Xml.Serialization;

namespace Curriculum.Business.LectorMetadatos
{
	/// <summary>
	/// Summary description for LectorAntecedentes.
	/// </summary>
	public class LectorAntecedentes : LectorBase
	{
		public LectorAntecedentes()
		{}

		public ListaAntecedentesXML Leer(string nroVersion)
		{
			return base.GetXMLDeserealizado(nroVersion) as ListaAntecedentesXML;
		}


		#region Implementacion LectorBase
		protected override XmlSerializer CrearSerializador()
		{
			return new XmlSerializer(typeof(ListaAntecedentesXML));
		}

		protected override string GetNombreArchivoXML()
		{
			return System.Configuration.ConfigurationSettings.AppSettings[Constants.APP_ANTECEDENTES];			
		}

		#endregion
	}
		
}
